using System;
using System.Collections.Generic;
using System.Text;
using FluentNHibernate.Mapping;
using Water.Model;

namespace Water.Data.Repositories.Mappings
{


    public class SmallValveOperateMap : ClassMap<SmallValveOperate>
    {

        public SmallValveOperateMap()
        {
            Table("Tbt_SmallValveOperate");
            LazyLoad();
            Id(x => x.MRNO).GeneratedBy.Assigned().Column("MRNO");
            Map(x => x.EpcNo).Column("EpcNO").Not.Nullable();
            References<Valve>(x => x.Ve, "EpcNO").PropertyRef(e => e.EpcNO).ReadOnly();
            Map(x => x.CloseDt).Column("CloseDt").Not.Nullable();
            Map(x => x.StartDt).Column("StartDt").Not.Nullable();
            Map(x => x.ZhuanCount).Column("ZhuanCount").Not.Nullable();
            Map(x => x.StartDirection).Column("StartDirection");
            Map(x => x.OperateQk).Column("OperateQk");
            Map(x => x.OperateEmp).Column("OperateEmp").Not.Nullable();
            Map(x => x.CreateDt).Column("CreateDt").ReadOnly();
        }
    }
}
